/*
 * 缓存
 *
 * @Author:    罗伊
 * @Date:      2022-09-03 21:51:34
 * @Wechat:    zhuda1024
 * @Email:     lab1024@163.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */
import { postRequest, getRequest, deleteRequest,putRequest } from '/src/lib/axios';

export const socialsproviderApi = {
    // 获取某个缓存的所有key @author 罗伊 
    //http://192.168.15.79:9526/maxkey-mgt-api/security/socialsprovider/fetch?providerName=&displayName=&employeeNumber=&startDate=&endDate=&startDatePicker=1728176296277&endDatePicker=1730768296277&pageSize=10&pageNumber=1&pageSizeOptions=10&pageSizeOptions=20&pageSizeOptions=50
    getsocialsprovider: (param) => {
        return getRequest(`/security/socialsprovider/fetch`, param);
    },
    //添加社交服务 http://192.168.15.79:9526/maxkey-mgt-api/security/socialsprovider/add
    addSocialsProvider: (param) => {
        return postRequest('/security/socialsprovider/add', param);
    },
    //删除社交服务 http://192.168.15.79:9526/maxkey-mgt-api/security/socialsprovider/delete?ids=1051131890230099968
    deleteSocialsProvider: (param) => {
        return deleteRequest('/security/socialsprovider/delete?ids=' + param, param);
    },
    //编辑社交服务 http://192.168.15.79:9526/maxkey-mgt-api/security/socialsprovider/get/1051137855998394368
    getSocialsProviderById: (param) => {
        return deleteRequest('/security/socialsprovider/get/' + param);
    },
    //编辑社交服务 http://192.168.15.79:9526/maxkey-mgt-api/security/socialsprovider/update
    updateSocialsProviderById: (param) => {
        return putRequest('/security/socialsprovider/update', param);
    },

};
